package com.zsd.android.opencvface.view.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.zsd.android.opencvface.R;

public class MainActivity extends BaseActivity implements View.OnClickListener {

    private RecyclerView mRecycler;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mRecycler = findViewById(R.id.main_recycler);
        mRecycler.setLayoutManager(new LinearLayoutManager(this));

        findViewById(R.id.face_btn).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.face_btn:
                startActivity(new Intent(this, FaceActivity.class));
                break;
        }
    }
}
